from django.urls import path
from .views import cat_list, apply_list, donate_list, person_list, site_list, LoginView, home, logout_view, cat_create, \
    cat_update, cat_delete

urlpatterns = [
    path('login/', LoginView.as_view(), name='login'),
    path('logout/', logout_view, name='logout'),
    path('', home, name='home'),
    path('cats/', cat_list, name='cat_list'),
    path('cats/create/', cat_create, name='cat_create'),
    path('cats/update/<int:pk>/', cat_update, name='cat_update'),
    path('cats/delete/<int:pk>/', cat_delete, name='cat_delete'),
    path('applies/', apply_list, name='apply_list'),
    path('donates/', donate_list, name='donate_list'),
    path('persons/', person_list, name='person_list'),
    path('sites/', site_list, name='site_list'),
]